package com.ruifu.bom;

import com.fhzncloud.cloud.common.security.annotation.EnableCloudFeignClients;
import com.fhzncloud.cloud.common.security.annotation.EnableCloudResourceServer;
import com.fhzncloud.cloud.common.swagger.annotation.EnableCloudSwagger2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.jmx.support.RegistrationPolicy;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author nyr
 */
@EnableEurekaClient
@MapperScan("com.ruifu.bom.mapper")
@EnableCloudResourceServer(details = true)
@SpringCloudApplication
@EnableCloudFeignClients
@EnableFeignClients  //启动feign客户端
//解决jmx重复注册bean的问题
@EnableCloudSwagger2
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING)
public class CloudBomApplication {

    public static void main(String[] args) {
        SpringApplication.run(CloudBomApplication.class, args);
    }

}
